//
//  main.cpp
//  Mir_1
//
//  Created by 종헌 백 on 12. 1. 10..
//  Copyright (c) 2012년 backssi1@naver.com. All rights reserved.
//

#include <iostream>

using namespace std;
/*
int main ()
{
    char letter;
    int a;
    do{
    
        cout << "Input a Letter : ";
        cin >> letter;
    } while ( 'A' > letter );
    
    a = letter;
    
    cout << "Your letter : "<<letter<<endl;
    
    if ( a < 96 )
        
        cout << "Order : " << a - 64;
    else
        
        cout << "Order : " << a - 96;
    
    return 0;
    
    
    
}*/

#include <iostream>
#include <fstream>

using namespace std;

int main ()
{
    ofstream fout;
    fout.open("test.txt");
    
    char letter;
    int a;
    do{
        
        fout << "Input a Letter : ";
        cin >> letter;
    } while ( 'A' > letter );
    
    a = letter;
    
    fout << "Your letter : "<<letter<<endl;
    
    if ( a < 96 )
        
        fout << "Order : " << a - 64;
    else
        
        fout << "Order : " << a - 96;
    
    return 0;
    
    
    
}

